/*
 * 2011-04-13 created by liugq
 */
package com.jwater.web.ui.tag.components;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.ClosingUIBean;
import org.apache.struts2.views.annotations.StrutsTag;

import com.opensymphony.xwork2.util.ValueStack;

@StrutsTag(
	    name="accordioncontent",
	    tldTagClass="com.jwater.web.ui.tags.AccordionContentTag",
	    description="Renders an Accordion content",
	    allowDynamicAttributes=true)
public class AccordionContent extends ClosingUIBean {

	public static final String TEMPLATE = "accordioncontent";
    public static final String TEMPLATE_CLOSE = "accordioncontent-close";
    public static final String COMPONENT_NAME = AccordionContent.class.getName();

	public AccordionContent(ValueStack stack, HttpServletRequest request, HttpServletResponse response) {
        super(stack, request, response);
    }
    
	@Override
	public String getDefaultOpenTemplate() {
		return TEMPLATE;
	}

	@Override
	protected String getDefaultTemplate() {
		return TEMPLATE_CLOSE;
	}

}
